﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics.CodeAnalysis;
using CoolEngine.Engine.Input;
using Microsoft.Xna.Framework.Input;
using CoolEngine.Engine.Scripting;

namespace CoolEngine.Engine
{
    [ContainsBoundCommands]
    [ContainsBoundPythonCommands]
    public static class ConsoleCommands
    {
        [SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "ignored", Justification = "Needed to fit the delegate.")]
        [DefaultBoundKey(Keys.Escape, ButtonPressStage.Down, null)]
        [Command(Command = "Quit", Description = "Quits the game", Name = "Quit", Help = "", Module="Game")]
        [PythonMethod(Name = "Quit", Module="Game", Parameters=0, Returns = false)]
        public static string Quit(params string[] ignore)
        {
            Environment.Exit(0);
            return null;
        }
    }
}
